﻿
@model PagedResult<token_bazaar_product_dto>
@{
    var img_url = ViewBag.img_url;
    if (Model.rows.Count > 0) {
        foreach (var item in Model.rows) {
            @*<div class="item" onclick="javascript:location.href='/BazaarProduct/Detail?Id=@item.id'">
                    <div class="inner">
                        <div class="box">
                            <div class="imgAuto">
                                <img src="@(img_url+item.main_img)" />
                            </div>
                            <p class="tit">@item.product_name</p>
                            <div class="bottom">
                                <span class="col-red">@item.price.ToString("f6")</span>
                                <em class="col-gray2">红钻</em>
                            </div>
                        </div>
                        <div class="user">
                            <span class="mr20 fn-left"><img src="@(string.IsNullOrEmpty(item.merchant_photo)?"/Content/images/my/icon.png":img_url+item.merchant_photo)" alt=""></span>
                            <span class="fn28 col-gray">@item.merchant_name</span>
                        </div>
                    </div>
                </div>*@
            <div class="item">
                <a href="/BazaarProduct/Detail?Id=@item.id">
                    <div class="itemBox">
                        <div class="img">
                            <img src="@(img_url+item.main_img)" />
                            @*<img imgurl="@(img_url+item.main_img)" src="http://iph.href.lu/200x200"/>*@
                        </div>
                        <div class="box">
                            <p class="tit">@item.product_name</p>
                            <p>
                                <em class="col-gray2">￥</em><span class="col-red">@item.market_price.ToString("f2")</span>
                                @*<em class="col-gray2">红钻</em>*@
                            </p>
                        </div>
                        <div class="user">
                            <span class="mr20 fn-left"><img class="profile" src="@(string.IsNullOrEmpty(item.merchant_photo)?"/Content/images/my/icon.png":img_url+item.merchant_photo)" alt=""></span>
                            <span class="fn28 col-gray">@item.merchant_name</span>
                        </div>
                    </div>
                </a>
            </div>
        }
    }
    <page total_pages="@Model.total_pages" rows="@Model.rows.Count()" total_result="@Model.total_result"></page>
}
@*<script type="text/javascript">
    $(function () {
        // 瀑布流
        $('.wall').jaliswall({ item: '.item' });
    })
    </script>*@


